<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>ESTs</title>
		<script src="js/jquery.js" type="text/javascript"></script>
		<script src="js/table.js" type="text/javascript"></script>
	</head>
	<body>
		<form id="mainForm" action="est/getAllESTs.action" method="get">
			<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
			<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
			<input type="hidden" name="page.order" id="order" value="${page.order}"/>
			<table class="table_items">
				<thead>
					<tr>
						<th>
							Exception Name
						</th>
						<th>
							Tip
						</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="page.result">
						<tr>
							<td>
								<a href="est/getESTByUUID.action?uuid=${uuid}">${fullName}</a>
							</td>
							<td>
								${tip}
							</td>
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<div class="divPageController">
				${page.totalCount}&nbsp;&nbsp;${page.pageNo} / ${page.totalPages}
				<a href="javascript:jumpPage(1)" class="link_button">First Page</a>
				<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})" class="link_button">Previous</s:if>
				<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})" class="link_button">Next</a></s:if>
				<a href="javascript:jumpPage(${page.totalPages})" class="link_button">Last Page</a>
			</div>
		</form>
	</body>
</html>